/**
 * Source file: OnSubmit_Disability.ejs
 * Copyright (C) 2013 : Quantum Solutions
 * Id: $Id$
 * Date: $Date$
 *
 * Form_onSubmit ()
 * Description: This event is triggered before your form will be transmitted to the forms data collection destination (but after the other validations).
 */
 
function Form_onSubmit ()
{
	var oneYes = (
		(EFormGetValue("Contribute_1") == 1)
		|| (EFormGetValue("Contribute_2") == 1)
		|| (EFormGetValue("Contribute_3") == 1)
		|| (EFormGetValue("Contribute_4") == 1)
		|| (EFormGetValue("Contribute_5") == 1)
		|| (EFormGetValue("Contribute_6") == 1)		
		);
	if (oneYes) {
		if ($.trim(EFormGetValue("Deatils_of_Contribution")) == "") {
			alert ("Please give full details or circumstances (7.8)");
			return false
		}
	}

	return true;
}